window.onload = window.onresize =  function () {
    var oP = document.querySelector('.intro-p1');
    oP.style.left = "calc(50% - " + (oP.clientWidth / 2) + "px)";
}

